#ifndef CONFIG_H
#define CONFIG_H

#include <wx/font.h>
#include <wx/colour.h>
#include <wx/fileconf.h>


class GlobalConfig
{
private:
    static wxFileConfig* fileConfig;

public:

    static void Initialize(const wxString& filePath);

    static void Destroy();

	static int GetLanguage();
	static void SetLanguage(int lang);

    static wxString GetRecentUser();
    static void SetRecentUser(const wxString& passport);

    static wxString GetRecentServer();
    static void SetRecentServer(const wxString& server);

	static int GetConnectionType();
    static void SetConnectionType(int type);

	static wxString GetHttpProxyAddress();
    static void SetHttpProxyAddress(const wxString& address);

	static int GetHttpProxyPort();
    static void SetHttpProxyPort(int port);

	static wxString GetHttpProxyUsername();
    static void SetHttpProxyUsername(const wxString& username);

	static wxString GetHttpProxyPassword();
    static void SetHttpProxyPassword(const wxString& password);

};


#endif
